<template>
<view>
	<view class="header">盘点表</view>
	<view class="table">
		<table border="0" width="95%" cellspacing="0" cellpadding="0">
			<tr>
				<th>商品名称</th>
				<th>现有库存</th>
				<th>实际库存</th>
				<th>货损</th>
			</tr>
			<tr v-for="(item,index) in list" :key="index">
				<td class="td1">{{item.goods_name}}</td>
				<td class="td2">{{item.num}}</td>
				<td class="td2">{{item.true_num}}</td>
				<td class="td2">{{item.loss_num}}</td>
			</tr>
		</table>
	</view>
	<button class="buttonClass" @click="add">确定</button>
</view>
</template>
<script>
import request from '@/util/request.js'
export default {
	data() {
		return {
			//oaRole 1:店长2:员工3:商户
			list:[]
		}
	},
	onLoad:function(e){
		this.list = JSON.parse(e.item)
	},
	methods: {
		
	}
}
</script>
<style>
.header{
    width:100%;
    height:80rpx;
    line-height: 80rpx;
    text-align: center;
    background:#00b300;
    color:#fff;
}
.table{
	width:100%;
	padding:10rpx 20rpx 120rpx 20rpx;
}
table{
	margin-top:30rpx;
}
td{
	border:1rpx solid #C8C7CC;
	text-align: center;
	height:70rpx;
	line-height:70rpx;
}
th{
	border:1rpx solid #C8C7CC;
	text-align: center;
	height:70rpx;
	line-height:70rpx;
}
.td1{
	width:40%;
}
.td2{
	width:20%;
}

/* input{
	border-bottom: 1rpx dashed #000000;
} */
</style>